package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.bizimpl.upmp.domain.MerGrpInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
* @author LiuYuLiang.LL
*/
    public interface MerGrpInfoService extends IService<MerGrpInfo> {

    IPage<MerGrpInfo> findByPage(QueryRequest request, MerGrpInfo info);

    IPage<MerGrpInfo> mergrpinfoSelect2List(QueryRequest request,String  q);

    @Transactional
    void create(MerGrpInfo entity);

    @Transactional
    void update(MerGrpInfo entity);

    @Transactional
    void cancel(String id);

    @Transactional
    void delete(String[] ids);

    MerGrpInfo findOneByManagementScope(String managementScope, String status);

    MerGrpInfo findByGrpNo(String grpNo);

    List<MerGrpInfo> findByGrpDesc(String grpDesc);

    List<Map> getMcGrpList(String status);
}
